package com.mlnx.ui.service.impl;

import com.mlnx.ui.service.AppService;
import org.springframework.stereotype.Service;

import java.io.File;

@Service
public class AppServiceImpl implements AppService {


    @Override
    public String getVersion() {
        File d = new File("");
        File file = new File(d.getAbsolutePath() + File.separator + "app");

        if (!file.exists())
            file.mkdirs();

        return file.list()[0].replace(".apk", "");
    }
}
